package net.myspring.rabbit;

import net.myspring.rabbit.send.SendController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author wangzm
 */
@SpringBootApplication
public class RabbitApplication {

	public static void main(String[] args) {
		ApplicationContext applicationContext=SpringApplication.run(RabbitApplication.class, args);
		SendController sendController= (SendController) applicationContext.getBean("sendController");
		sendController.fanoutSend();
	}
}
